// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.UserStandardPermissionDao;
import com.liuxinlong.modules.entity.UserStandardPermission;
import com.liuxinlong.modules.mapper.UserStandardPermissionMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年9月16日
 */
@Service
public class UserStandardPermissionDaoImpl extends ServiceImpl<UserStandardPermissionMapper, UserStandardPermission> implements UserStandardPermissionDao {

    @Override
    public List<UserStandardPermission> pageStandardPermissionList(Map<String, Object> queryParam) {
        return baseMapper.pageStandardPermissionList(queryParam);
    }

    @Override
    public int getStandardPermissionCount(Map<String, Object> queryParam) {
        return baseMapper.getStandardPermissionCount(queryParam);
    }
    @Override
    public UserStandardPermission getUserStandard(String userId, String standardId) {
        return baseMapper.getUserStandard(userId,standardId);
    }

    @Override
    public List<UserStandardPermission> getStandardPermissionList() {
        return baseMapper.getStandardPermissionList();
    }
}
